package edu.gdkm.abstractdemo2;
//Manager的工资包括基本工资和奖金
public class Manager extends Employee {
    private double baseSalary;  
    private double bonus;  
  
    public Manager(String name, String gender, int age, double baseSalary, double bonus) {  
        super(name, gender, age);  
        this.baseSalary = baseSalary;  
        this.bonus = bonus;  
    }  
  
    @Override  
    public double salary_count() {  
        return baseSalary + bonus;  
    }  
}  